package li;

public class day9 {
    public static void main(String[] args) {
        String s1=new String("abc");
        String s2=new String("abc");
        String s3=new String("ABC");
        System.out.println(s1.equals(s2));
        System.out.println(s2.equals(s3));
       String  sh1="a"+"b"+"c";
        String  sh2="ab"+"c";
        String  sh3="abc";
        System.out.println(sh1.equals(sh2));
        System.out.println(sh2.equals(sh3));

        String sh4=sh1+sh3;
        String sh5="abcabc";
        System.out.println(sh4.equals(sh5));

    }



}
